﻿
namespace CharacterCreation.Web.Models {
    public class CharacterService {

        private static CharacterService characterService;

        /// <summary>
        /// The selected character
        /// </summary>
        public Character SelectedCharacter { get; set; }
        public CharacterSkill CharacterSkill { get; set; }
        public CharacterSpecial CharacterSpecial { get; set; }
        public CharacterEnergy CharacterEnergy { get; set; }
        public CharacterSpell CharacterSpell { get; set; }
        public BaseStatistic CharacterStatistic { get; set; }

        /// <summary>
        /// private constructor
        /// </summary>
        private CharacterService() { }

        /// <summary>
        /// Return the character service singleton
        /// </summary>
        public static CharacterService Instance {
            get {
                if (characterService == null) characterService = new CharacterService();
                return characterService;
            }
        }
    }
}